package cn.darkfire.web.POJO;

public class Status {
    private int code;
    private String tips;
    private final static Status instance = new Status();

    Status(){

    }
    public Status(int code,String tips) {
        this.code = code;
        this.tips = tips;
    }

    public String setStatus(int code,String tips){
        this.code = code;
        this.tips = tips;
        return getInstance().toString();
    }

    public static Status getInstance() {
        return instance;
    }

    @Override
    public String toString() {
        return "{" +
                "\"code\":" + code +
                ", \"tips\":\"" + tips + '\"' +
                '}';
    }

    public int getCode() {
        return code;
    }

    public String getTips() {
        return tips;
    }
}
